//
//  EditUserNickname.m
//  UniversalApp
//
//  Created by 志刚杨 on 2018/1/31.
//  Copyright © 2018年 voidcat. All rights reserved.
//

#import "EditUserNickname.h"

@implementation EditUserNickname

- (void)awakeFromNib {
    [super awakeFromNib];
    self.nameL.text = curUser.user_nickname;
    [self.nameL addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged];
    self.nameL.textColor = CBC;
}

-(void)textFieldDidChange :(UITextField *)theTextField{
    if(self.userDidChange)
    {
        self.userDidChange(theTextField.text);
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
